<?php

namespace app\common\model;
use think\Model;
use think\model\concern\SoftDelete;

/**
 * This is the model class for table %tableName%.
 *
 %column%*/
class %className% extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = '%tableName%';

    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    // 定义时间戳字段名
    protected $createTime = 'createTime';
    protected $updateTime = 'updateTime';

    use SoftDelete;
    protected $deleteTime = 'deleteTime';
    protected $defaultSoftDelete = 0;
}